package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ImageController {
	
	@RequestMapping("/goIndex")
	public String goToIndex(Model model) {
		//根据条件读取数据库信息
		model.addAttribute("url", "C:/Users/Public/Pictures/Sample Pictures/张1阿森纳.jpg");
		return "showImage";
	}
}
